-- GENERATED SPELL FOR [Sinewy Wolf] --


function spell0_31233(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(36589,pUnit)
pUnit:RegisterEvent('Sorts_31233', 15257, 1)
end

function spell1_31233(pUnit, Event) --@Snarl,n/a--
pUnit:FullCastSpellOnTarget(32919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31233', 666, 1)
end

function spell2_31233(pUnit, Event) --@Throat Rip,n/a--
pUnit:FullCastSpellOnTarget(59008,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31233', 604, 1)
end

function Sorts_31233(pUnit, Event)
local choix_sorts_31233 = math.random(0, 2)
if choix_sorts_31233 == 0 then
pUnit:RegisterEvent('spell0_31233', 1, 1)
end
if choix_sorts_31233 == 1 then
pUnit:RegisterEvent('spell1_31233', 1, 1)
end
if choix_sorts_31233 == 2 then
pUnit:RegisterEvent('spell2_31233', 1, 1)
end
end

function mob31233_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31233', math.random(1500, 3000), 1)
end

function mob31233_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31233_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31233_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31233, 1, 'mob31233_Action')
RegisterUnitEvent(31233, 2, 'mob31233_Leave')
RegisterUnitEvent(31233, 3, 'mob31233_Kill')
RegisterUnitEvent(31233, 4, 'mob31233_Die')
